package Exp_1;

public class Test extends LinkList{
    public static void main(String[] args) {
        int[] data = new int[]{21,75,30,18,42,56,2};
        LinkList list = new LinkList();
        for (int i=0;i< data.length;i++) {
            list.insert(i,data[i]);
        }
        list.display();
        //
        System.out.println("-----插入-----");
        list.insert(3,67);
        list.display();
        list.insert(9,10);
        list.display();
        //
        System.out.println("-----删除-----");
        list.delete(4);
        list.display();
        list.delete(8);
        list.display();
        //
        System.out.println("-----查找-----");
        list.get(5);
        list.get(7);
        //
        System.out.println("-----设置最小值-----");
        list.setMinDataAhead();
        list.display();
        System.out.println("ok");
    }
}
